(:: pragma bea:global-element-parameter parameter="$submitOrder1" element="ns1:SubmitOrder" location="../WSDLs/SubmitOrder.wsdl" ::)
(:: pragma bea:global-element-parameter parameter="$getGroupIdResponse1" element="ns3:getGroupIdResponse" location="../WSDLs/mockGetGroupIdSF.wsdl" ::)
(:: pragma bea:global-element-parameter parameter="$getSKUInformationResponse1" element="ns2:getSKUInformationResponse" location="../WSDLs/mockGetSKUinformationSF.wsdl" ::)
(:: pragma bea:global-element-return element="ns0:addDMDevice3" location="../xsd/wimax2.xsd" ::)

declare namespace ns2 = "http://www.example.org/mockGetSKUinformationSF/";
declare namespace ns1 = "http://www.example.org/SubmitOrder/";
declare namespace ns3 = "http://www.example.org/mockGetGroupIdSF/";
declare namespace ns0 = "http://integration.clearwire.com/public/interfaces/OMADM/wimax.xsd";
declare namespace xf = "http://tempuri.org/ActivateNewCustomer/Transformation/test/";

declare function xf:test($submitOrder1 as element(ns1:SubmitOrder),
    $getGroupIdResponse1 as element(ns3:getGroupIdResponse),
    $getSKUInformationResponse1 as element(ns2:getSKUInformationResponse))
    as element(ns0:addDMDevice3) {
        <ns0:addDMDevice3>
            <ns0:macAddress>{ data($submitOrder1/macID) }</ns0:macAddress>
            <ns0:make>{ data($getSKUInformationResponse1/make) }</ns0:make>
            <ns0:model>{ data($getSKUInformationResponse1/model) }</ns0:model>
            <ns0:groupId>{ data($getGroupIdResponse1/groupId) }</ns0:groupId>
        </ns0:addDMDevice3>
};

declare variable $submitOrder1 as element(ns1:SubmitOrder) external;
declare variable $getGroupIdResponse1 as element(ns3:getGroupIdResponse) external;
declare variable $getSKUInformationResponse1 as element(ns2:getSKUInformationResponse) external;

xf:test($submitOrder1,
    $getGroupIdResponse1,
    $getSKUInformationResponse1)